package com.gitee.wsl.transform.encode.pinyin.trie

/**
 * Contains the matched keyword and some payload data.
 *
 * @author Daniel Beck
 * @param <T> The type of the wrapped payload data.
</T> */
class Payload<T>(val keyword: String, val data: T?) : Comparable<Payload<T>> {

    override fun compareTo(other: Payload<T>): Int {
        return keyword.compareTo(other.keyword)
    }
}
